const prompt = require('./prompt.js');
module.exports = function specifiedFrameVer () {
    return new Promise ((resolve, reject) => {
        prompt('是否指定框架版本号？(y/n)', /[n|y]/).then((answer) => {
            if ('y' === answer) {
                prompt('输入框架版本号(1.0.0)',/^\d+\.\d+\.\d+$/).then((ver) => {
                    resolve(ver);
                });
            } else {
                resolve('');
            }
        });
    })
}
